/**
 * 
 */
package com.google.code.cisx.client.gadgets;

import com.google.code.cisx.client.event.TypedEvent;

/**
 * Types of events a Gadget can generate classified here.
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: GadgetEvent.java 258 2008-11-29 06:23:51Z rahul.thakur.xdev $
 */
public class GadgetEvent extends TypedEvent {

  public enum GadgetEventType {
    GADGET_INITIALIZED("Initialized"), GADGET_MINIMIZED("Minimized"), GADGET_MAXIMIZED("Maximized"), GADGET_RESTORED(
        "Restored"), GADGET_CLOSED("Closed");

    private String type;

    /**
     * @param type
     */
    private GadgetEventType(String type) {
      this.type = type;
    }

    @Override
    public String toString() {
      return this.type;
    }
  }

  /**
   * @param source
   * @param type
   */
  public GadgetEvent(Object source, String type) {
    super(source, type);
  }

  /**
   * @param source
   */
  public GadgetEvent(Object source) {
    super(source);
  }

}
